<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="cn.lyjuan.dwz_manage.core.java.util.ActionUtils" %>
<%@ page import="cn.lyjuan.dwz_manage.core.java.exception.ErrorCode" %>
<%@ page import="org.springframework.http.HttpStatus" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    // 判断 Ajax请求
    boolean isAjax = ActionUtils.isAjaxRequest(request);
    if (isAjax)
    {
        response.setContentType("text/json;charset=utf-8");
        response.setStatus(HttpStatus.OK.value());
        ActionUtils.returnDwzAjax(request, response, ErrorCode.Mg.ERR, "无权进行该操作");
        return;
    }
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>403无权</title>
    <%@include file="../dwz/basePath.jsp" %>
    <base href="${basePath}"/>
    <link href="./dwz/error.css" rel="stylesheet" />
</head>
<body>

<div class="error-page">
    <div class="error-page-container">
        <div class="error-page-main">
            <h3>
                <strong>403</strong>没有足够的权限
            </h3>
            <div class="error-page-actions">
                <div>
                    <h4>可能原因：</h4>
                    <ol>
                        <li>没有访问该资源的权限</li>
                    </ol>
                </div>
                <div>
                    <h4>可以尝试：</h4>
                    <ul>
                        <li><a href="/">返回首页</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>